FROM saibaster/pyspider:latest

COPY ./webui /opt/pyspider/pyspider/webui

RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple/
RUN pip install pymysql bs4 -i https://pypi.tuna.tsinghua.edu.cn/simple/

WORKDIR /opt/pyspider

ENTRYPOINT ["pyspider"]

EXPOSE 5000 23333 24444 25555 22222
